home *** CD-ROM | disk | FTP | other *** search
- Subject: Re: Scripting Problem
- Sent: 8/6/96 7:47 AM
- Received: 8/6/96 8:53 AM
- From: Serge Froment, sfroment@odyssee.net
- Reply-To: ODF Interest, ODF-Interest@CILabs.ORG
- To: OpenDoc Development Framework Discussion List, ODF-Interest@CILabs.
-
- >The only property ODF requires all
- >scriptable objects to support is pClass. Some classes of objects can be
- >specified by numeric index, others can't.
-
- The script command "get someProperty of first someClass" has ODF to access
- an object by index. When access index is not supported, we get an error
- message like "Can't make someClass 1 into someClass 1". This message
- confused my into thinking there were an ODF bug. I guess many users will be
- confused too.
-
- >If the default
- >implementation for retrieving an object's index does not work for your
- >implementation, you'll need to override GetProperty and provide an
- >implementation that works.
-
- This is what I did and it did worked well.
-
- >Hope this helps,
-
- It does.
-
- I have another question I posted to the list and get some reply from Chris
- Hunt, but I am still confused. Here is my question:
-
- Since scriptable parts inherit from FW_MPartScriptable (or
- FW_MEmbeddingPartScriptable), it looks like parts can have properties.
- However, I can't figure out how to specify part properties inside the
- 'aete' resource in such way that ODF will call my override of GetProperty
- for the my added property of my part object.
-
- Thanks,
-
- Serge
-
-
-